package com.share.user.api.user.controller;

import com.share.common.core.domain.R;
import com.share.user.service.IUserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class StaUserController {

    @Autowired
    private IUserInfoService userInfoService;

    @GetMapping(value = "/UserCount")
    public R<Map<String, Object>> getUserCount() {
        Map<String, Object> map = userInfoService.getUserCount();
        return R.ok(map);
    }
}
